package roborally.model;

public enum Orientation {
	UP(0,-1),RIGHT(1,0),DOWN(0,1),LEFT(-1,0);

	/**
	 * two integers that contain the differences needed to move a robot on a position with this Enum object as orientation.
	 */
	private int dx;
	private int dy;

	/**
	 * 
	 * @param 	dx
	 * 			the difference over x needed to move a robot on a position with this Enum object as orientation
	 * @param 	dy
	 * 			the difference over y needed to move a robot on a position with this Enum object as orientation
	 */
	Orientation(int dx, int dy)
	{
		this.dx = dx;
		this.dy = dy;
	}
	/**
	 * @return returns dx
	 */
	public long getDx() {
		return dx;
	}
	/**
	 * @return returns dy
	 */
	public long getDy() {
		return dy;
	}
}
